package com.snail.xgcd.bean;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import java.io.Serializable;
import java.util.Date;

/**
 * description:
 * Author:XingDeGuo
 * Date:2018/4/26
 */
@MappedSuperclass
public class BaseBean implements Serializable{



    @Column(name = "remarks")
    protected String remarks;	    // 备注

    @Column(name = "create_by")
    protected String createBy;	//

    @Column(name = "create_date")
    protected Date createDate ;	// 创建日期

    @Column(name = "update_by")
    protected String updateBy;	// 更新者

    @Column(name = "update_date")
    protected Date updateDate = new Date();	// 更新日期

    @Column(name = "del_flag")
    protected String delFlag = "0"; 	// 删除标记（0：正常；1：删除；）

    public BaseBean(String remarks, String createBy, Date createDate, String updateBy, Date updateDate, String delFlag) {
        this.remarks = remarks;
        this.createBy = createBy;
        this.createDate = createDate;
        this.updateBy = updateBy;
        this.updateDate = updateDate;
        this.delFlag = delFlag;
    }

    public BaseBean() {
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }
}
